package com.yunkeji.system.domain.bo;

import com.yunkeji.common.core.validate.AddGroup;
import com.yunkeji.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yunkeji.common.core.domain.BaseEntity;

/**
 * 通话话单业务对象 ykj_call_sheet_info
 *
 * @author zhang
 * @date 2024-07-10
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CallSheetInfoBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 通话类型（1：语音，2：视频）
     */
    @NotNull(message = "通话类型（1：语音，2：视频）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;

    /**
     * 主叫用户id
     */
    @NotNull(message = "主叫用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long callerId;

    /**
     * 主叫客户端渠道号，默认0
     */
    @NotNull(message = "主叫客户端渠道号，默认0不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer callerPlat;

    /**
     * 主叫用户id
     */
    @NotNull(message = "主叫用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long answerId;

    /**
     * 主叫客户端渠道号，默认0
     */
    @NotNull(message = "主叫客户端渠道号，默认0不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer answerPlat;

    /**
     * 通话唯一标识
     */
    @NotBlank(message = "通话唯一标识不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ucid;

    /**
     * 通话状态（0：等待接通，1：正在通话，2：主叫挂断，3：被叫挂断，4：接听超时，5：被叫忙碌，6：系统挂断），默认值为0
     */
    @NotNull(message = "通话状态（0：等待接通，1：正在通话，2：主叫挂断，3：被叫挂断，4：接听超时，5：被叫忙碌，6：系统挂断），默认值为0不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 被叫振铃时间
     */
    @NotNull(message = "被叫振铃时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer ringTime;

    /**
     * 接通时间
     */
    @NotNull(message = "接通时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date startTime;

    /**
     * 结束时间
     */
    @NotNull(message = "结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date stopTime;

    /**
     * 通话时长，秒
     */
    @NotNull(message = "通话时长，秒不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long duration;

    /**
     * 通话单价
     */
    @NotNull(message = "通话单价不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal callPrice;

    /**
     * 主叫支付单价
     */
    @NotNull(message = "主叫支付单价不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal payPrice;

    /**
     * 主叫支付费用
     */
    @NotNull(message = "主叫支付费用不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal payCost;

    /**
     * 被叫收益单价
     */
    @NotNull(message = "被叫收益单价不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal earnPrice;

    /**
     * 被叫收益费用
     */
    @NotNull(message = "被叫收益费用不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal earnCost;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 录音信息
     */
    @NotBlank(message = "录音信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String record;

    /**
     * 心跳上报次数-预留
     */
    @NotNull(message = "心跳上报次数-预留不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long keepLiveTimes;

    /**
     * 计费次数-预留
     */
    @NotNull(message = "计费次数-预留不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long priceTimes;

    /**
     * 是否已经评分
     */
    @NotNull(message = "是否已经评分不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer scoreFlag;

    /**
     * 创建日期
     */
    @NotNull(message = "创建日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer callDate;



}
